﻿/*CREATE TRIGGER [dbo].[BoletinesMotivos_DeletionTrigger] 
    ON [BoletinesMotivos] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[BoletinesMotivos_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[MotivoGuid] = [BoletinesMotivos_Tombstone].[MotivoGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[BoletinesMotivos_Tombstone] 
    ([MotivoGuid], DeletionDate)
    SELECT [MotivoGuid], GETUTCDATE()
    FROM deleted 
END*/